import request from '../utils/request'

export function userLogin(params) {
    return request({
        method: 'post',
        url: '/user/login',
        data: {
            data: params
        }
    })
}

export function resetPwd(params) {
    return request({
        method: 'post',
        url: '/user/reset_password',
        data: {
            data: params
        }
    })
}

export function info() {
    return request({
        method: 'post',
        url: '/user/info'
    })
}

export function info_ext() {
    return request({
        method: 'post',
        url: "/user/info_ext"
    })
}
export function reset_password_check(params) {
    return request({
        method: 'post',
        url: "/user/reset_password_check",
        data: {
            data: params
        }
    })
}
export function reset_password_update(params) {
    return request({
        method: 'post',
        url: "reset_password_update",
        data: {
            data: params
        }
    })
}
export function reset_password_resend(params) {
    return request({
        method: 'post',
        url: "/user/reset_password_resend",
        data: {
            data: params
        }
    })
}

export function change_password(params) {
    return request({
        method: 'post',
        url: '/user/change_password',
        data: {
            data: params
        }
    })
}